package cn.lngaosu.lwyd.module.integration.job;

import cn.lngaosu.lwyd.framework.quartz.core.handler.JobHandler;
import cn.lngaosu.lwyd.framework.tenant.core.job.TenantJob;
import cn.lngaosu.lwyd.module.integration.service.weibostatusesusertimeline.WeiboStatusesUsertimelineService;
import cn.lngaosu.lwyd.module.integration.service.weibouserscounts.WeiboUserscountsService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class WeiboStatusesUsertimelineJob implements JobHandler {

    @Resource
    private WeiboStatusesUsertimelineService weiboStatusesUsertimelineService;

    @Override
    @TenantJob
    public String execute(String param) {
        weiboStatusesUsertimelineService.syncWeiboStatusesUsertimeline();
        return "同步最新发表的微博列表数据";
    }

}
